<?php

namespace App\Admin\Extensions\Nav;
use App\Http\Models\StatisticsGoodsInfo;

class Links
{
    private $ordinary_all_unaudited=0;
    private $bursting_all_unaudited=0;
    private $kill_all_unaudited=0;
    private $error_all_unaudited=0;

    public function __construct() 
    {
        $GoodsInfo = StatisticsGoodsInfo::getGoodsAllData();
        $this->ordinary_all_unaudited = $GoodsInfo['ordinary_all_unaudited'];
        $this->bursting_all_unaudited = $GoodsInfo['bursting_all_unaudited'];
        $this->kill_all_unaudited = $GoodsInfo['kill_all_unaudited'];
        $this->error_all_unaudited = $GoodsInfo['error_all_unaudited'];
    }
    public function __toString()
    {
        return <<<HTML
<li>
    <a href="/admin/goods/unaudited">
      <i class="fa fa-arrows-h text-red"></i>
      <span class="label label-success">$this->ordinary_all_unaudited</span>
    </a>
</li>
<li>
    <a href="/admin/bursting/examine">
      <i class="fa fa-fire text-yellow"></i>
      <span class="label label-success">$this->bursting_all_unaudited</span>
    </a>
</li>

<li>
    <a href="/admin/bursting/examine">
      <i class="fa fa-bolt text-fuchsia"></i>
      <span class="label label-success">$this->kill_all_unaudited</span>
    </a>
</li>

<li>
    <a href="/admin/goodscorrection">
      <i class="fa fa-exclamation-circle text-maroon"></i>
      <span class="label label-success">$this->error_all_unaudited</span>
    </a>
</li>
HTML;
    }
}